﻿using ttg_internal.Utilities.UsageVisualizer.View;
using ttg_internal.utils;

namespace ttg_internal.Utilities.UsageVisualizer.ViewModel
{
    /// <summary>
    /// Model of <see cref="DeviceUsageTabView" />
    /// </summary>
    internal class DeviceUsageTabViewModel : UsageTabViewModel
    {
        /// <summary>
        /// Initializes a new instance visualizing the specified device
        /// </summary>
        public DeviceUsageTabViewModel(DeviceInfo deviceInfo)
        {
            _deviceInfo = deviceInfo;
            Title = deviceInfo.Name;
        }

        // Private fields
        private readonly DeviceInfo _deviceInfo;

        /// <summary>
        /// Information about visualized device
        /// </summary>
        public DeviceInfo DeviceInfo
        {
            get { return _deviceInfo; }
        }
    }
}
